package ae.pcfc.cldos.online.web.controller.client.company.vv.cancel;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import org.springframework.web.bind.annotation.ModelAttribute;

import ae.pcfc.cldos.online.common.clddb.domain.VisitVisaCancel;
import ae.pcfc.cldos.online.common.vo.LabelVO;
import ae.pcfc.cldos.online.web.Constants;
import ae.pcfc.cldos.online.web.controller.base.BasePageController;

/**
 * 
 * @author arosa
 *
 */
public abstract class VVCancelBase extends BasePageController {

	@ModelAttribute(Constants.__EXIT_MODES)
	public List<LabelVO> populatePRPeriodList(Locale locale){
		List<LabelVO> labelList = new ArrayList<LabelVO>();
		{
			LabelVO labelVO = new LabelVO();
			labelVO.setId(VisitVisaCancel.__EXIT_WITH);
			labelVO.setDisplayLabel(messageSource.getMessage("vv.cancel.exit.with", new Object[]{}, locale));
			labelList.add(labelVO);
		}
		{
			LabelVO labelVO = new LabelVO();
			labelVO.setId(VisitVisaCancel.__EXIT_WITHOUT);
			labelVO.setDisplayLabel(messageSource.getMessage("vv.cancel.exit.without", new Object[]{}, locale));
			labelList.add(labelVO);
		}
		{
			LabelVO labelVO = new LabelVO();
			labelVO.setId(VisitVisaCancel.__EXIT_CANCEL);
			labelVO.setDisplayLabel(messageSource.getMessage("vv.cancel.exit.cancel", new Object[]{}, locale));
			labelList.add(labelVO);
		}
		return labelList;
	}
}
